//------------------------------------------------------------------------------
#ifndef FONTBUTTON_H
#define FONTBUTTON_H
//------------------------------------------------------------------------------
#include <QPushButton>
#include <QFontDialog>
//------------------------------------------------------------------------------
class FontButton : public QPushButton {
		Q_OBJECT
//------------------------------------------------------------------------------
	public:
		explicit FontButton(QWidget *parent = 0);
		~FontButton();

		const QFont & selectedFont() const{ return m_selectedFont; }
//------------------------------------------------------------------------------
	private slots:
		void mouseReleased();
//------------------------------------------------------------------------------
	public slots:
		void fontSelected(const QFont &col);
//------------------------------------------------------------------------------
	signals:
		void selectedFontChanged(const QFont &font);
//------------------------------------------------------------------------------
	private:
		QFontDialog *m_fontDialog;
		QFont m_selectedFont;
//------------------------------------------------------------------------------
};
//------------------------------------------------------------------------------
#endif // FONTBUTTON_H
//------------------------------------------------------------------------------
